package com.jack;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext ax = new AnnotationConfigApplicationContext(Myconfig.class);
		PersionService persionService = (PersionService) ax.getBean("persionService");
		PersionService bean = ax.getBean(PersionService.class);
		persionService.a();
	}

}
